package basedeal

import (
	"context"
	"iotall/iotcore/api/proxyup"
)

type IDeal interface {
	GetCommPortId() int64
	GetClientNum() int32

	CloseFunc(ctx context.Context, in *proxyup.CloseReq) (*proxyup.CloseResp, error)
	UpFunc(ctx context.Context, in *proxyup.UpReq) (*proxyup.UpResp, error)

	Start()
	Close()
}
